<!--SIF Implementation Specification 2.2-6 (March 17, 2008)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.sifinfo.org/infrastructure/2.x" xmlns:sif="http://www.sifinfo.org/infrastructure/2.x" elementFormDefault="qualified">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="imports/xml/xml.xsd" />
  <xs:complexType name="FoodserviceTransactionPayMethodType">
    <xs:annotation>
      <xs:documentation>
								This object communicates the funding for a given transaction. By the term funding we refer to the form of payment
								that is made for the transaction.
							</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="FoodserviceTransactionRefId" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>GUID that identifies food service transaction</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TransactionPayMethods">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TransactionPayMethod" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Amounts">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Amount" maxOccurs="unbounded" type="sif:FSAmountType">
                          <xs:annotation>
                            <xs:documentation>This amount is the form of the incoming funds for this transaction. For example; the payment can be made by a credit card.</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="Type" use="required">
                  <xs:annotation>
                    <xs:documentation>This refers to the way the payment was made.</xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:token">
                      <xs:enumeration value="Payment" />
                      <xs:enumeration value="Refund" />
                      <xs:enumeration value="Charge" />
                      <xs:enumeration value="Usage" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="sif:SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="sif:SIF_ExtendedElementsType" />
    </xs:sequence>
    <xs:attribute name="RefId" use="required" type="sif:RefIdType">
      <xs:annotation>
        <xs:documentation>GUID that identifies the payment</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

  <xs:element name="FoodserviceTransactionPayMethod" type="sif:FoodserviceTransactionPayMethodType" />

</xs:schema>